package dfl.bysj.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author DFL
 * @since 2022-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Academy对象", description="")
public class HonestGrade implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer stuUseId;

    private Float grade;

    private Integer record;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    public HonestGrade() {
    }

    public HonestGrade(Integer stuUseId, Float grade, Integer record) {
        this.stuUseId = stuUseId;
        this.grade = grade;
        this.record = record;
    }
}
